<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视图界面的输入输出</title>
</head>

<body>
    <script>
        var msg = prompt("请输入您的内容");
        alert('用户输入内容是：' + msg)
    </script>

</body>

</html>